home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / tex / dvivga9.zip / SETRULE.H < prev    next >
Text File  |  1988-05-30  |  826b  |  31 lines

  1. /* -*-C-*- setrule.h */
  2. /*-->setrule*/
  3. /**********************************************************************/
  4. /****************************** setrule *******************************/
  5. /**********************************************************************/
  6.  
  7. void
  8. setrule(height, width, update_h)
  9. register UNSIGN32 height, width;
  10. register BOOLEAN update_h;
  11.  
  12. {   /* draw a rule with bottom left corner at (h,v) */
  13.  
  14.     if ((height > 0) && (width > 0))        /* non-empty rule */
  15.  
  16. #if    BBNBITGRAPH
  17.     fillrect(hh+xscreen, YSIZE-vv+yscreen,
  18.         rulepxl(width,conv)  ,  rulepxl(height,conv));
  19. #else
  20.     fillrect(hh, YSIZE-vv,
  21.         rulepxl(width,conv), rulepxl(height,conv));
  22. #endif
  23.  
  24.     if (update_h)
  25.     {
  26.     h += (INT32)width;
  27.     hh += rulepxl(width, conv);
  28.     hh = fixpos(hh-lmargin,h,conv) + lmargin;
  29.     }
  30. }
  31.